package cn.edu.qlnu.xky.test.listener;

/**
 * @author wuweihong
 * @version 1.0
 * @date 2025/6/22 0:18
 * @Description: Please write your descriptions for this class.
 **/



import cn.edu.qlnu.xky.test.task.OverdueCheckTask;
import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;


public class StartupListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        OverdueCheckTask overdueCheckTask = new OverdueCheckTask();
        overdueCheckTask.startChecking();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        // 清理资源（如果需要）
    }
}
